import { IItemArray } from '@/components/SearchForm'
export const useFormEdit = (): IItemArray[] => {
  return [
    {
      name: 'category',
      label: '选择产品速度',
      type: 'Select',
      // option: categoryList,
      placeholder: '请选择产品',
      rules: [
        {
          required: true,
          message: '请选择产品',
        },
      ],
    },
    {
      name: 'name',
      label: '设备名称',
      type: 'Input',
      placeholder: '请输入设备名称',
      rules: [{ required: true, message: '请输入设备名称' }],
      config: {
        showCount: true,
        maxLength: 20,
      },
    },
    {
      name: 'price',
      label: 'sn编号',
      type: 'Input',
      placeholder: '请输入sn编号',
      rules: [{ required: true, message: '请输入sn编号' }],
    },
    {
      name: 'price22',
      label: '物联网卡号',
      type: 'Input',
      placeholder: '请输入物联网卡号',
      rules: [{ required: true, message: '请输入物联网卡号' }],
    },
  ]
}
